import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTabbedPane;
import javax.swing.ImageIcon;


public class VAlquilar extends JFrame {

	private JPanel contentPane;
	private JTabbedPane tabbedPane;
	private JPanel panelPeliculas, panelVideojuegos, botonera;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					VAlquilar frame = new VAlquilar();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public VAlquilar() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		this.getContentPane().add("Center",tabbedPane);
		
		panelPeliculas = new JPanel();
		tabbedPane.addTab("Pel\u00EDculas", new ImageIcon(VAlquilar.class.getResource("/Imagenes/icon_movie.gif")), panelPeliculas, null);
		panelPeliculas.setLayout(new BorderLayout(0, 0));
		
		panelVideojuegos = new JPanel();
		tabbedPane.addTab("Videojuegos", new ImageIcon(VAlquilar.class.getResource("/Imagenes/joystick.png")), panelVideojuegos, null);
		panelVideojuegos.setLayout(new BorderLayout(0, 0));
		
		botonera = new JPanel();
		this.getContentPane().add("South",botonera);
		
	}

}
